/*
 * Copyright 2009 by Brian Dominy <brian@oddchange.com>
 *
 * This file is part of FreeWPC.
 *
 * FreeWPC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * FreeWPC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with FreeWPC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <freewpc.h>

void magna_goalie_light (void)
{
	flag_on (FLAG_MAGNA_GOALIE_LIT);
}

void magna_goalie_activate (void)
{
}

CALLSET_ENTRY (magna_goalie_user, sw_light_magna_goalie)
{
	magna_goalie_light ();
}

CALLSET_ENTRY (magna_goalie_user, sw_magnet_button)
{
	if (flag_test (FLAG_MAGNA_GOALIE_LIT))
	{
		flag_off (FLAG_MAGNA_GOALIE_LIT);
		magna_goalie_activate ();
	}
}

CALLSET_ENTRY (magna_goalie_user, start_player)
{
	magna_goalie_light ();
}

CALLSET_ENTRY (magna_goalie_user, init)
{
}

